#ifndef __MOD_FTP_UPDATE_H__
#define __MOD_FTP_UPDATE_H__

#include "typedef.h"

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#include <string.h>

#include "platform.h"

enum FtpStatus{
    FTP_STATUS_SUCCESS = 0,
    FTP_STATUS_LOADING,
    FTP_STATUS_FAIL,
};

//开始下载文件
int32_t ftp_get_file(char_t *ip, int32_t port, char_t *user, char_t *pwd, char_t *path, char_t *fname);
int32_t ftp_get_status(void);

#endif
